package org.pt.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class EnvCheck {

    @Value("${spring.profiles.active:default}")
    private String activeProfile; // 去掉 static

    @Value("${spring.datasource.password}")
    private String password;

    public String getActiveProfile() {
        return activeProfile;
    }

    public String getPassword() {
        return password;
    }

}
